package com.david.tvhelperapp.msgdealers

import com.david.tvhelperapp.MsgBean

class ChannelMsgDealer :AMsgDealer(){
    override fun dealMsg(ip:String, msg: String): Boolean {
        if (msg.contains("我要看") || msg.contains("看") ||
            msg.contains("切换到") ||
            msg.contains("卫视") ||
            (msg.contains("中央") && msg.contains("套"))
        ) {
            return true
        }
        return false
    }

    override fun dealMsg(ip: String, msgBean: MsgBean): Boolean {
        if ("change_channel" == msgBean.actionType) {
            return true
        }
        return false
    }
}